package prac6;
/**
 * Used to throw/catch an exception when we want to access an element that 
 * does not exist
 * 
 * @author          Maria Garcia de la Banda
 * @modified        Brendon Taylor (July 2009) - JavaDoc / Indentation / Style
 *                  Brendon Taylor (Feb 2010) - JavaDoc
 * @since           28 February 2007
 * @input           none
 * @output          none
 * @errorHandling   none
 * @knownBugs       none
 */
public class NoSuchElementException extends RuntimeException {
	/** Auto-generated serialVersionUID */
	private static final long serialVersionUID = 828751205062629226L;

	/**
	 * @complexity    best and worse case: O(1)
	 */
	public NoSuchElementException() {
		super("Exception: Empty List");
	}

	/**
	 * @param         message to be displayed
	 * @complexity    best and worse case: O(1) 
	 */
	public NoSuchElementException(String message) {
		super("Exception: Empty List " + message);
	}
}
